package cn.zeal4j.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * @author Administrator
 * @file IntelliJ IDEA Hibernate-Tutorial
 * @create 2020 09 26 19:51
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department implements Serializable {
    private static final long serialVersionUID = -2834030425366265977L;
    private Integer departmentId;
    private String departmentName;
    private String departmentLocation;

    private Set<Employee> employeeSet = new HashSet<>(); // 建立双向一对多关系映射

    public Set<Employee> getEmployeeSet() {
        return employeeSet;
    }
}


//    public Department() {
//    }
//
//    public Department(Integer departmentId, String departmentName, String departmentLocation) {
//        this.departmentId = departmentId;
//        this.departmentName = departmentName;
//        this.departmentLocation = departmentLocation;
//    }
//
//    public Integer getDepartmentId() {
//        return departmentId;
//    }
//
//    public void setDepartmentId(Integer departmentId) {
//        this.departmentId = departmentId;
//    }
//
//    public String getDepartmentName() {
//        return departmentName;
//    }
//
//    public void setDepartmentName(String departmentName) {
//        this.departmentName = departmentName;
//    }
//
//    public String getDepartmentLocation() {
//        return departmentLocation;
//    }
//
//    public void setDepartmentLocation(String departmentLocation) {
//        this.departmentLocation = departmentLocation;
//    }
